<?php
if (!defined('baseinfo')) {
    exitdata();
}   
?>
<footer>
<style>
<?if($data['showsitemap']==0){?>
.sitemapdata{

display: none;

}
<?}?>
</style>

<?if($data['sitemap']&&$data['showsitemap']==0){?>
<div title="sitemap" class="sitemapdata">
<??>

<ul id="datasitemap" >
<?if(count($data['sitemap']['data'])){
$sitemapuserid='';
$pagecheck=1;
if($_GET['page'])
{
$pagecheck=$_GET['page'];
}
if($_GET['userid'])
{
$sitemapuserid='&userid='.$_GET['userid'];
}
foreach($data['sitemap']['data'] as $valuesitemap)
{
?>
 <li class="listItem">
<a href="<?=$valuesitemap['link']?>" data-href="<?=$valuesitemap['url']?>"><?=$valuesitemap['title']?></a>
</li>
<?
}
}?>
</ul>

<ul  id="datasitemappage">
 <?for($isite=1;$isite<=$data['sitemap']['numpage'];$isite++){?>
 <li class="listItem">
<?
list($path,$parameter)=explode("?",$_SERVER['REQUEST_URI']);

if($pagecheck==$isite)
{
echo '<b>Page '.$isite.'</b>';
}else
{
?>
<a href="<?=baseinfo.$path.'?page='.$isite.$sitemapuserid?>" data-href="page<?=$isite?>">Page <?=$isite?></a>
<?}?>
</li>
<?}?>
</ul>

</div>
<?}?>
</footer>

<?

include(templatepath.'/script.php');           

?>

<?

if($data['file'])
{
if(is_file(templatepath.'/script'.$data['file'].'.php'))
{
include(templatepath.'/script'.$data['file'].'.php');  
}

if(is_file(templatepath.'/dmmanager/script'.$data['file'].'.php')&&count($data['user'])!=0&&$data['user']['roleid']>=3)
{
include(templatepath.'/dmmanager/script'.$data['file'].'.php');  
}

if(is_file(templatepath.'/createfeature/script'.$data['file'].'.php')&&count($data['user'])!=0&&$data['user']['roleid']==4)
{
include(templatepath.'/createfeature/script'.$data['file'].'.php');  
}

}


?>

